package InterviewPractise.sort;

import java.util.Comparator;

/**
 * Created by IntelliJ IDEA.
 * User: Richard
 * Date: 5/20/11
 * Time: 8:03 AM
 * To change this template use File | Settings | File Templates.
 */
public class PersonCompartor implements Comparator<Person>{
    public int compare(Person o1, Person o2) {
        return o1.getAge()-o2.getAge();  //To change body of implemented methods use File | Settings | File Templates.
    }
}
